{extend name="Base/common"/}
{block name="style"}
<style type="text/css">
	a{
		cursor: pointer;
	}
	.info{
		font-size: 18px;
		padding: 10px;
	}
	.info .times{
		color: red;
		font-weight:700;
	}
	.charge{
		padding: 10px;
	}
</style>
{/block}


{block name="left"}
<div class="title">{:get_username()}</div>
<div class="info-list">
	<div class="info" style="display:none;">
		<div class="info-title">最大用户数</div>
		<div class="info-content">{$user.user_max_amount}</div>
	</div>
	<div class="info">
		<div class="info-title">已发送次数</div>
		<div class="info-content">{$user.send_amount}</div>
	</div>
	<div class="info">
		<div class="info-title">剩余次数</div>
		<div class="info-content">{$user.send_max_amount > $user.send_amount ? $user.send_max_amount - $user.send_amount : 0}</div>
	</div>
</div>
<div class="charge">
	<table class="table">
		<thead>
			<tr>
				<th>充值金额</th>
				<th>可发送好友次数</th>
				<th>充值</th>
			</tr>
		</thead>
		<tbody>
			{volist id='item' name="recharge"}
				<tr>
					<td>{$item.price}</td>
					<td>{$item.send_amount}</td>
					<td><a href="{:url('recharge?amount='.$item['price'])}">立即充值{$item.price}元</a></td>
				</tr>
			{/volist}
		</tbody>
	</table>
</div>
{/block}

{block name="script"}
{/block}
